//
// Created by tao on 24-9-16.
//

#ifndef ROLE_H
#define ROLE_H

#include <font.h>

#define BIRD_RAISE_TIME_DEFAULT 10
#define BIRD_RAISE_TIME_MIN 0
#define BIRD_RAISE_MIN 0
#define BIRD_DROP_MAX 49


typedef enum _bird_vector {
    raise = -1,
    drop = 2,
} BirdVector;

typedef struct _bird {
    unsigned int w;
    unsigned int h;
    unsigned int x;
    unsigned int y;
    unsigned int time;
    unsigned int raiseTime;
    const Image *image;
    const Image *image1;
    const Image *image2;
    BirdVector vector;
} Bird;

void bird_iterator(Bird *bird);


void bird_raise(Bird *bird);

void OLED_DrawBird(const Bird *bird);
#endif //ROLE_H
